package com.huifaapp.mall.api;

/**
 * @author: wangZ
 * @date：2017/7/25 15:13
 * FileName：ApiException
 * @description：自定义异常
 */


public class ApiException extends Throwable {



    public String code;
    public String message;
    public ApiException(String code , String message) {
//        super(msg);
        this.code=code;
        this.message = message;

    }

    @Override
    public String getMessage() {
        return message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
